<?php
declare(strict_types=1);
namespace Field;

class OneWordPackageConst
{
    public const pk='';
    public const index=[];
	public const fields=['campaignId','adgroupId','bizCode','gmtCreate','gmtModified','campaignBidType','displayStatus','adgroupName','faultName','enableColdSpeedNewItem','enableOcpc','ocpcStatus','ocpcRatio','ocpcMarketingAim','materialId','bidwordCount','adRotation','auditStatus','imgUrl','linkUrl','categoryId','firstCatId','categoryNameList','onlineStatus','adPv','click','charge','alipayInshopAmt','transaction_cost','ctr','cvr','roi','alipayInshopNum','colCartNum','cartDirNum','cartIndirNum','colCartRate','ecpc','ecpm','colCartCost','itemColInshopNum','shopColDirNum','colNum','cartInshopNum','alipayDirAmt','alipayIndirAmt','alipayDirNum','alipayIndirNum','adUv','adUvCost','shopVisitUv','wwNum','cartRate','cartCost','itemColInshopCost'];
	public const comment=['campaignId'=>'','adgroupId'=>'','bizCode'=>'','gmtCreate'=>'','gmtModified'=>'','campaignBidType'=>'','displayStatus'=>'','adgroupName'=>'','faultName'=>'','enableColdSpeedNewItem'=>'','enableOcpc'=>'','ocpcStatus'=>'','ocpcRatio'=>'','ocpcMarketingAim'=>'','materialId'=>'','bidwordCount'=>'','adRotation'=>'','auditStatus'=>'','imgUrl'=>'','linkUrl'=>'','categoryId'=>'','firstCatId'=>'','categoryNameList'=>'','onlineStatus'=>'','adPv'=>'','click'=>'','charge'=>'','alipayInshopAmt'=>'','transaction_cost'=>'','ctr'=>'','cvr'=>'','roi'=>'','alipayInshopNum'=>'','colCartNum'=>'','cartDirNum'=>'','cartIndirNum'=>'','colCartRate'=>'','ecpc'=>'','ecpm'=>'','colCartCost'=>'','itemColInshopNum'=>'','shopColDirNum'=>'','colNum'=>'','cartInshopNum'=>'','alipayDirAmt'=>'','alipayIndirAmt'=>'','alipayDirNum'=>'','alipayIndirNum'=>'','adUv'=>'','adUvCost'=>'','shopVisitUv'=>'','wwNum'=>'','cartRate'=>'','cartCost'=>'','itemColInshopCost'=>''];
	/*
    * @Field campaignId
    * @Type varchar(255)
    * @Collation utf8mb4_general_ci
    * @Null YES
    * @Key 
    * @Default 
    * @Extra 
    * @Privileges select,insert,update,references
    * @Comment 
    */
    public const campaignId = 'campaignId';
    /*
    * @Field adgroupId
    * @Type varchar(255)
    * @Collation utf8mb4_general_ci
    * @Null YES
    * @Key 
    * @Default 
    * @Extra 
    * @Privileges select,insert,update,references
    * @Comment 
    */
    public const adgroupId = 'adgroupId';
    /*
    * @Field bizCode
    * @Type varchar(255)
    * @Collation utf8mb4_general_ci
    * @Null YES
    * @Key 
    * @Default 
    * @Extra 
    * @Privileges select,insert,update,references
    * @Comment 
    */
    public const bizCode = 'bizCode';
    /*
    * @Field gmtCreate
    * @Type varchar(255)
    * @Collation utf8mb4_general_ci
    * @Null YES
    * @Key 
    * @Default 
    * @Extra 
    * @Privileges select,insert,update,references
    * @Comment 
    */
    public const gmtCreate = 'gmtCreate';
    /*
    * @Field gmtModified
    * @Type varchar(255)
    * @Collation utf8mb4_general_ci
    * @Null YES
    * @Key 
    * @Default 
    * @Extra 
    * @Privileges select,insert,update,references
    * @Comment 
    */
    public const gmtModified = 'gmtModified';
    /*
    * @Field campaignBidType
    * @Type varchar(255)
    * @Collation utf8mb4_general_ci
    * @Null YES
    * @Key 
    * @Default 
    * @Extra 
    * @Privileges select,insert,update,references
    * @Comment 
    */
    public const campaignBidType = 'campaignBidType';
    /*
    * @Field displayStatus
    * @Type varchar(255)
    * @Collation utf8mb4_general_ci
    * @Null YES
    * @Key 
    * @Default 
    * @Extra 
    * @Privileges select,insert,update,references
    * @Comment 
    */
    public const displayStatus = 'displayStatus';
    /*
    * @Field adgroupName
    * @Type varchar(255)
    * @Collation utf8mb4_general_ci
    * @Null YES
    * @Key 
    * @Default 
    * @Extra 
    * @Privileges select,insert,update,references
    * @Comment 
    */
    public const adgroupName = 'adgroupName';
    /*
    * @Field faultName
    * @Type varchar(255)
    * @Collation utf8mb4_general_ci
    * @Null YES
    * @Key 
    * @Default 
    * @Extra 
    * @Privileges select,insert,update,references
    * @Comment 
    */
    public const faultName = 'faultName';
    /*
    * @Field enableColdSpeedNewItem
    * @Type varchar(255)
    * @Collation utf8mb4_general_ci
    * @Null YES
    * @Key 
    * @Default 
    * @Extra 
    * @Privileges select,insert,update,references
    * @Comment 
    */
    public const enableColdSpeedNewItem = 'enableColdSpeedNewItem';
    /*
    * @Field enableOcpc
    * @Type varchar(255)
    * @Collation utf8mb4_general_ci
    * @Null YES
    * @Key 
    * @Default 
    * @Extra 
    * @Privileges select,insert,update,references
    * @Comment 
    */
    public const enableOcpc = 'enableOcpc';
    /*
    * @Field ocpcStatus
    * @Type varchar(255)
    * @Collation utf8mb4_general_ci
    * @Null YES
    * @Key 
    * @Default 
    * @Extra 
    * @Privileges select,insert,update,references
    * @Comment 
    */
    public const ocpcStatus = 'ocpcStatus';
    /*
    * @Field ocpcRatio
    * @Type varchar(255)
    * @Collation utf8mb4_general_ci
    * @Null YES
    * @Key 
    * @Default 
    * @Extra 
    * @Privileges select,insert,update,references
    * @Comment 
    */
    public const ocpcRatio = 'ocpcRatio';
    /*
    * @Field ocpcMarketingAim
    * @Type varchar(255)
    * @Collation utf8mb4_general_ci
    * @Null YES
    * @Key 
    * @Default 
    * @Extra 
    * @Privileges select,insert,update,references
    * @Comment 
    */
    public const ocpcMarketingAim = 'ocpcMarketingAim';
    /*
    * @Field materialId
    * @Type varchar(255)
    * @Collation utf8mb4_general_ci
    * @Null YES
    * @Key 
    * @Default 
    * @Extra 
    * @Privileges select,insert,update,references
    * @Comment 
    */
    public const materialId = 'materialId';
    /*
    * @Field bidwordCount
    * @Type varchar(255)
    * @Collation utf8mb4_general_ci
    * @Null YES
    * @Key 
    * @Default 
    * @Extra 
    * @Privileges select,insert,update,references
    * @Comment 
    */
    public const bidwordCount = 'bidwordCount';
    /*
    * @Field adRotation
    * @Type varchar(255)
    * @Collation utf8mb4_general_ci
    * @Null YES
    * @Key 
    * @Default 
    * @Extra 
    * @Privileges select,insert,update,references
    * @Comment 
    */
    public const adRotation = 'adRotation';
    /*
    * @Field auditStatus
    * @Type varchar(255)
    * @Collation utf8mb4_general_ci
    * @Null YES
    * @Key 
    * @Default 
    * @Extra 
    * @Privileges select,insert,update,references
    * @Comment 
    */
    public const auditStatus = 'auditStatus';
    /*
    * @Field imgUrl
    * @Type varchar(255)
    * @Collation utf8mb4_general_ci
    * @Null YES
    * @Key 
    * @Default 
    * @Extra 
    * @Privileges select,insert,update,references
    * @Comment 
    */
    public const imgUrl = 'imgUrl';
    /*
    * @Field linkUrl
    * @Type varchar(255)
    * @Collation utf8mb4_general_ci
    * @Null YES
    * @Key 
    * @Default 
    * @Extra 
    * @Privileges select,insert,update,references
    * @Comment 
    */
    public const linkUrl = 'linkUrl';
    /*
    * @Field categoryId
    * @Type varchar(255)
    * @Collation utf8mb4_general_ci
    * @Null YES
    * @Key 
    * @Default 
    * @Extra 
    * @Privileges select,insert,update,references
    * @Comment 
    */
    public const categoryId = 'categoryId';
    /*
    * @Field firstCatId
    * @Type varchar(255)
    * @Collation utf8mb4_general_ci
    * @Null YES
    * @Key 
    * @Default 
    * @Extra 
    * @Privileges select,insert,update,references
    * @Comment 
    */
    public const firstCatId = 'firstCatId';
    /*
    * @Field categoryNameList
    * @Type varchar(255)
    * @Collation utf8mb4_general_ci
    * @Null YES
    * @Key 
    * @Default 
    * @Extra 
    * @Privileges select,insert,update,references
    * @Comment 
    */
    public const categoryNameList = 'categoryNameList';
    /*
    * @Field onlineStatus
    * @Type varchar(255)
    * @Collation utf8mb4_general_ci
    * @Null YES
    * @Key 
    * @Default 
    * @Extra 
    * @Privileges select,insert,update,references
    * @Comment 
    */
    public const onlineStatus = 'onlineStatus';
    /*
    * @Field adPv
    * @Type varchar(255)
    * @Collation utf8mb4_general_ci
    * @Null YES
    * @Key 
    * @Default 
    * @Extra 
    * @Privileges select,insert,update,references
    * @Comment 
    */
    public const adPv = 'adPv';
    /*
    * @Field click
    * @Type varchar(255)
    * @Collation utf8mb4_general_ci
    * @Null YES
    * @Key 
    * @Default 
    * @Extra 
    * @Privileges select,insert,update,references
    * @Comment 
    */
    public const click = 'click';
    /*
    * @Field charge
    * @Type varchar(255)
    * @Collation utf8mb4_general_ci
    * @Null YES
    * @Key 
    * @Default 
    * @Extra 
    * @Privileges select,insert,update,references
    * @Comment 
    */
    public const charge = 'charge';
    /*
    * @Field alipayInshopAmt
    * @Type varchar(255)
    * @Collation utf8mb4_general_ci
    * @Null YES
    * @Key 
    * @Default 
    * @Extra 
    * @Privileges select,insert,update,references
    * @Comment 
    */
    public const alipayInshopAmt = 'alipayInshopAmt';
    /*
    * @Field transaction_cost
    * @Type varchar(255)
    * @Collation utf8mb4_general_ci
    * @Null YES
    * @Key 
    * @Default 
    * @Extra 
    * @Privileges select,insert,update,references
    * @Comment 
    */
    public const transaction_cost = 'transaction_cost';
    /*
    * @Field ctr
    * @Type varchar(255)
    * @Collation utf8mb4_general_ci
    * @Null YES
    * @Key 
    * @Default 
    * @Extra 
    * @Privileges select,insert,update,references
    * @Comment 
    */
    public const ctr = 'ctr';
    /*
    * @Field cvr
    * @Type varchar(255)
    * @Collation utf8mb4_general_ci
    * @Null YES
    * @Key 
    * @Default 
    * @Extra 
    * @Privileges select,insert,update,references
    * @Comment 
    */
    public const cvr = 'cvr';
    /*
    * @Field roi
    * @Type varchar(255)
    * @Collation utf8mb4_general_ci
    * @Null YES
    * @Key 
    * @Default 
    * @Extra 
    * @Privileges select,insert,update,references
    * @Comment 
    */
    public const roi = 'roi';
    /*
    * @Field alipayInshopNum
    * @Type varchar(255)
    * @Collation utf8mb4_general_ci
    * @Null YES
    * @Key 
    * @Default 
    * @Extra 
    * @Privileges select,insert,update,references
    * @Comment 
    */
    public const alipayInshopNum = 'alipayInshopNum';
    /*
    * @Field colCartNum
    * @Type varchar(255)
    * @Collation utf8mb4_general_ci
    * @Null YES
    * @Key 
    * @Default 
    * @Extra 
    * @Privileges select,insert,update,references
    * @Comment 
    */
    public const colCartNum = 'colCartNum';
    /*
    * @Field cartDirNum
    * @Type varchar(255)
    * @Collation utf8mb4_general_ci
    * @Null YES
    * @Key 
    * @Default 
    * @Extra 
    * @Privileges select,insert,update,references
    * @Comment 
    */
    public const cartDirNum = 'cartDirNum';
    /*
    * @Field cartIndirNum
    * @Type varchar(255)
    * @Collation utf8mb4_general_ci
    * @Null YES
    * @Key 
    * @Default 
    * @Extra 
    * @Privileges select,insert,update,references
    * @Comment 
    */
    public const cartIndirNum = 'cartIndirNum';
    /*
    * @Field colCartRate
    * @Type varchar(255)
    * @Collation utf8mb4_general_ci
    * @Null YES
    * @Key 
    * @Default 
    * @Extra 
    * @Privileges select,insert,update,references
    * @Comment 
    */
    public const colCartRate = 'colCartRate';
    /*
    * @Field ecpc
    * @Type varchar(255)
    * @Collation utf8mb4_general_ci
    * @Null YES
    * @Key 
    * @Default 
    * @Extra 
    * @Privileges select,insert,update,references
    * @Comment 
    */
    public const ecpc = 'ecpc';
    /*
    * @Field ecpm
    * @Type varchar(255)
    * @Collation utf8mb4_general_ci
    * @Null YES
    * @Key 
    * @Default 
    * @Extra 
    * @Privileges select,insert,update,references
    * @Comment 
    */
    public const ecpm = 'ecpm';
    /*
    * @Field colCartCost
    * @Type varchar(255)
    * @Collation utf8mb4_general_ci
    * @Null YES
    * @Key 
    * @Default 
    * @Extra 
    * @Privileges select,insert,update,references
    * @Comment 
    */
    public const colCartCost = 'colCartCost';
    /*
    * @Field itemColInshopNum
    * @Type varchar(255)
    * @Collation utf8mb4_general_ci
    * @Null YES
    * @Key 
    * @Default 
    * @Extra 
    * @Privileges select,insert,update,references
    * @Comment 
    */
    public const itemColInshopNum = 'itemColInshopNum';
    /*
    * @Field shopColDirNum
    * @Type varchar(255)
    * @Collation utf8mb4_general_ci
    * @Null YES
    * @Key 
    * @Default 
    * @Extra 
    * @Privileges select,insert,update,references
    * @Comment 
    */
    public const shopColDirNum = 'shopColDirNum';
    /*
    * @Field colNum
    * @Type varchar(255)
    * @Collation utf8mb4_general_ci
    * @Null YES
    * @Key 
    * @Default 
    * @Extra 
    * @Privileges select,insert,update,references
    * @Comment 
    */
    public const colNum = 'colNum';
    /*
    * @Field cartInshopNum
    * @Type varchar(255)
    * @Collation utf8mb4_general_ci
    * @Null YES
    * @Key 
    * @Default 
    * @Extra 
    * @Privileges select,insert,update,references
    * @Comment 
    */
    public const cartInshopNum = 'cartInshopNum';
    /*
    * @Field alipayDirAmt
    * @Type varchar(255)
    * @Collation utf8mb4_general_ci
    * @Null YES
    * @Key 
    * @Default 
    * @Extra 
    * @Privileges select,insert,update,references
    * @Comment 
    */
    public const alipayDirAmt = 'alipayDirAmt';
    /*
    * @Field alipayIndirAmt
    * @Type varchar(255)
    * @Collation utf8mb4_general_ci
    * @Null YES
    * @Key 
    * @Default 
    * @Extra 
    * @Privileges select,insert,update,references
    * @Comment 
    */
    public const alipayIndirAmt = 'alipayIndirAmt';
    /*
    * @Field alipayDirNum
    * @Type varchar(255)
    * @Collation utf8mb4_general_ci
    * @Null YES
    * @Key 
    * @Default 
    * @Extra 
    * @Privileges select,insert,update,references
    * @Comment 
    */
    public const alipayDirNum = 'alipayDirNum';
    /*
    * @Field alipayIndirNum
    * @Type varchar(255)
    * @Collation utf8mb4_general_ci
    * @Null YES
    * @Key 
    * @Default 
    * @Extra 
    * @Privileges select,insert,update,references
    * @Comment 
    */
    public const alipayIndirNum = 'alipayIndirNum';
    /*
    * @Field adUv
    * @Type varchar(255)
    * @Collation utf8mb4_general_ci
    * @Null YES
    * @Key 
    * @Default 
    * @Extra 
    * @Privileges select,insert,update,references
    * @Comment 
    */
    public const adUv = 'adUv';
    /*
    * @Field adUvCost
    * @Type varchar(255)
    * @Collation utf8mb4_general_ci
    * @Null YES
    * @Key 
    * @Default 
    * @Extra 
    * @Privileges select,insert,update,references
    * @Comment 
    */
    public const adUvCost = 'adUvCost';
    /*
    * @Field shopVisitUv
    * @Type varchar(255)
    * @Collation utf8mb4_general_ci
    * @Null YES
    * @Key 
    * @Default 
    * @Extra 
    * @Privileges select,insert,update,references
    * @Comment 
    */
    public const shopVisitUv = 'shopVisitUv';
    /*
    * @Field wwNum
    * @Type varchar(255)
    * @Collation utf8mb4_general_ci
    * @Null YES
    * @Key 
    * @Default 
    * @Extra 
    * @Privileges select,insert,update,references
    * @Comment 
    */
    public const wwNum = 'wwNum';
    /*
    * @Field cartRate
    * @Type varchar(255)
    * @Collation utf8mb4_general_ci
    * @Null YES
    * @Key 
    * @Default 
    * @Extra 
    * @Privileges select,insert,update,references
    * @Comment 
    */
    public const cartRate = 'cartRate';
    /*
    * @Field cartCost
    * @Type varchar(255)
    * @Collation utf8mb4_general_ci
    * @Null YES
    * @Key 
    * @Default 
    * @Extra 
    * @Privileges select,insert,update,references
    * @Comment 
    */
    public const cartCost = 'cartCost';
    /*
    * @Field itemColInshopCost
    * @Type varchar(255)
    * @Collation utf8mb4_general_ci
    * @Null YES
    * @Key 
    * @Default 
    * @Extra 
    * @Privileges select,insert,update,references
    * @Comment 
    */
    public const itemColInshopCost = 'itemColInshopCost';
}

class OneWordPackageColumns
{
public  ?string $campaignId='';
   public  ?string $adgroupId='';
   public  ?string $bizCode='';
   public  ?string $gmtCreate='';
   public  ?string $gmtModified='';
   public  ?string $campaignBidType='';
   public  ?string $displayStatus='';
   public  ?string $adgroupName='';
   public  ?string $faultName='';
   public  ?string $enableColdSpeedNewItem='';
   public  ?string $enableOcpc='';
   public  ?string $ocpcStatus='';
   public  ?string $ocpcRatio='';
   public  ?string $ocpcMarketingAim='';
   public  ?string $materialId='';
   public  ?string $bidwordCount='';
   public  ?string $adRotation='';
   public  ?string $auditStatus='';
   public  ?string $imgUrl='';
   public  ?string $linkUrl='';
   public  ?string $categoryId='';
   public  ?string $firstCatId='';
   public  ?string $categoryNameList='';
   public  ?string $onlineStatus='';
   public  ?string $adPv='';
   public  ?string $click='';
   public  ?string $charge='';
   public  ?string $alipayInshopAmt='';
   public  ?string $transaction_cost='';
   public  ?string $ctr='';
   public  ?string $cvr='';
   public  ?string $roi='';
   public  ?string $alipayInshopNum='';
   public  ?string $colCartNum='';
   public  ?string $cartDirNum='';
   public  ?string $cartIndirNum='';
   public  ?string $colCartRate='';
   public  ?string $ecpc='';
   public  ?string $ecpm='';
   public  ?string $colCartCost='';
   public  ?string $itemColInshopNum='';
   public  ?string $shopColDirNum='';
   public  ?string $colNum='';
   public  ?string $cartInshopNum='';
   public  ?string $alipayDirAmt='';
   public  ?string $alipayIndirAmt='';
   public  ?string $alipayDirNum='';
   public  ?string $alipayIndirNum='';
   public  ?string $adUv='';
   public  ?string $adUvCost='';
   public  ?string $shopVisitUv='';
   public  ?string $wwNum='';
   public  ?string $cartRate='';
   public  ?string $cartCost='';
   public  ?string $itemColInshopCost='';
	public function toArray():array
	{
		return [
'campaignId'=>$this->campaignId,
    'adgroupId'=>$this->adgroupId,
    'bizCode'=>$this->bizCode,
    'gmtCreate'=>$this->gmtCreate,
    'gmtModified'=>$this->gmtModified,
    'campaignBidType'=>$this->campaignBidType,
    'displayStatus'=>$this->displayStatus,
    'adgroupName'=>$this->adgroupName,
    'faultName'=>$this->faultName,
    'enableColdSpeedNewItem'=>$this->enableColdSpeedNewItem,
    'enableOcpc'=>$this->enableOcpc,
    'ocpcStatus'=>$this->ocpcStatus,
    'ocpcRatio'=>$this->ocpcRatio,
    'ocpcMarketingAim'=>$this->ocpcMarketingAim,
    'materialId'=>$this->materialId,
    'bidwordCount'=>$this->bidwordCount,
    'adRotation'=>$this->adRotation,
    'auditStatus'=>$this->auditStatus,
    'imgUrl'=>$this->imgUrl,
    'linkUrl'=>$this->linkUrl,
    'categoryId'=>$this->categoryId,
    'firstCatId'=>$this->firstCatId,
    'categoryNameList'=>$this->categoryNameList,
    'onlineStatus'=>$this->onlineStatus,
    'adPv'=>$this->adPv,
    'click'=>$this->click,
    'charge'=>$this->charge,
    'alipayInshopAmt'=>$this->alipayInshopAmt,
    'transaction_cost'=>$this->transaction_cost,
    'ctr'=>$this->ctr,
    'cvr'=>$this->cvr,
    'roi'=>$this->roi,
    'alipayInshopNum'=>$this->alipayInshopNum,
    'colCartNum'=>$this->colCartNum,
    'cartDirNum'=>$this->cartDirNum,
    'cartIndirNum'=>$this->cartIndirNum,
    'colCartRate'=>$this->colCartRate,
    'ecpc'=>$this->ecpc,
    'ecpm'=>$this->ecpm,
    'colCartCost'=>$this->colCartCost,
    'itemColInshopNum'=>$this->itemColInshopNum,
    'shopColDirNum'=>$this->shopColDirNum,
    'colNum'=>$this->colNum,
    'cartInshopNum'=>$this->cartInshopNum,
    'alipayDirAmt'=>$this->alipayDirAmt,
    'alipayIndirAmt'=>$this->alipayIndirAmt,
    'alipayDirNum'=>$this->alipayDirNum,
    'alipayIndirNum'=>$this->alipayIndirNum,
    'adUv'=>$this->adUv,
    'adUvCost'=>$this->adUvCost,
    'shopVisitUv'=>$this->shopVisitUv,
    'wwNum'=>$this->wwNum,
    'cartRate'=>$this->cartRate,
    'cartCost'=>$this->cartCost,
    'itemColInshopCost'=>$this->itemColInshopCost,        ];
	}
}

class OneWordPackageRow
{
	public OneWordPackageColumns $data;
	public function toArray():array
	{
		return $this->data->toArray();
    }

    public function getValue(string $field):string|int|null
    {
        return match ($field){
        'campaignId' => $this->data->campaignId,
        'adgroupId' => $this->data->adgroupId,
        'bizCode' => $this->data->bizCode,
        'gmtCreate' => $this->data->gmtCreate,
        'gmtModified' => $this->data->gmtModified,
        'campaignBidType' => $this->data->campaignBidType,
        'displayStatus' => $this->data->displayStatus,
        'adgroupName' => $this->data->adgroupName,
        'faultName' => $this->data->faultName,
        'enableColdSpeedNewItem' => $this->data->enableColdSpeedNewItem,
        'enableOcpc' => $this->data->enableOcpc,
        'ocpcStatus' => $this->data->ocpcStatus,
        'ocpcRatio' => $this->data->ocpcRatio,
        'ocpcMarketingAim' => $this->data->ocpcMarketingAim,
        'materialId' => $this->data->materialId,
        'bidwordCount' => $this->data->bidwordCount,
        'adRotation' => $this->data->adRotation,
        'auditStatus' => $this->data->auditStatus,
        'imgUrl' => $this->data->imgUrl,
        'linkUrl' => $this->data->linkUrl,
        'categoryId' => $this->data->categoryId,
        'firstCatId' => $this->data->firstCatId,
        'categoryNameList' => $this->data->categoryNameList,
        'onlineStatus' => $this->data->onlineStatus,
        'adPv' => $this->data->adPv,
        'click' => $this->data->click,
        'charge' => $this->data->charge,
        'alipayInshopAmt' => $this->data->alipayInshopAmt,
        'transaction_cost' => $this->data->transaction_cost,
        'ctr' => $this->data->ctr,
        'cvr' => $this->data->cvr,
        'roi' => $this->data->roi,
        'alipayInshopNum' => $this->data->alipayInshopNum,
        'colCartNum' => $this->data->colCartNum,
        'cartDirNum' => $this->data->cartDirNum,
        'cartIndirNum' => $this->data->cartIndirNum,
        'colCartRate' => $this->data->colCartRate,
        'ecpc' => $this->data->ecpc,
        'ecpm' => $this->data->ecpm,
        'colCartCost' => $this->data->colCartCost,
        'itemColInshopNum' => $this->data->itemColInshopNum,
        'shopColDirNum' => $this->data->shopColDirNum,
        'colNum' => $this->data->colNum,
        'cartInshopNum' => $this->data->cartInshopNum,
        'alipayDirAmt' => $this->data->alipayDirAmt,
        'alipayIndirAmt' => $this->data->alipayIndirAmt,
        'alipayDirNum' => $this->data->alipayDirNum,
        'alipayIndirNum' => $this->data->alipayIndirNum,
        'adUv' => $this->data->adUv,
        'adUvCost' => $this->data->adUvCost,
        'shopVisitUv' => $this->data->shopVisitUv,
        'wwNum' => $this->data->wwNum,
        'cartRate' => $this->data->cartRate,
        'cartCost' => $this->data->cartCost,
        'itemColInshopCost' => $this->data->itemColInshopCost, default=>null
        };
    }

    public function __construct(array $data)
    {
        $this->data = new OneWordPackageColumns();
        isset($data['campaignId']) && $this->data->campaignId = (string)$data['campaignId'];
           isset($data['adgroupId']) && $this->data->adgroupId = (string)$data['adgroupId'];
           isset($data['bizCode']) && $this->data->bizCode = (string)$data['bizCode'];
           isset($data['gmtCreate']) && $this->data->gmtCreate = (string)$data['gmtCreate'];
           isset($data['gmtModified']) && $this->data->gmtModified = (string)$data['gmtModified'];
           isset($data['campaignBidType']) && $this->data->campaignBidType = (string)$data['campaignBidType'];
           isset($data['displayStatus']) && $this->data->displayStatus = (string)$data['displayStatus'];
           isset($data['adgroupName']) && $this->data->adgroupName = (string)$data['adgroupName'];
           isset($data['faultName']) && $this->data->faultName = (string)$data['faultName'];
           isset($data['enableColdSpeedNewItem']) && $this->data->enableColdSpeedNewItem = (string)$data['enableColdSpeedNewItem'];
           isset($data['enableOcpc']) && $this->data->enableOcpc = (string)$data['enableOcpc'];
           isset($data['ocpcStatus']) && $this->data->ocpcStatus = (string)$data['ocpcStatus'];
           isset($data['ocpcRatio']) && $this->data->ocpcRatio = (string)$data['ocpcRatio'];
           isset($data['ocpcMarketingAim']) && $this->data->ocpcMarketingAim = (string)$data['ocpcMarketingAim'];
           isset($data['materialId']) && $this->data->materialId = (string)$data['materialId'];
           isset($data['bidwordCount']) && $this->data->bidwordCount = (string)$data['bidwordCount'];
           isset($data['adRotation']) && $this->data->adRotation = (string)$data['adRotation'];
           isset($data['auditStatus']) && $this->data->auditStatus = (string)$data['auditStatus'];
           isset($data['imgUrl']) && $this->data->imgUrl = (string)$data['imgUrl'];
           isset($data['linkUrl']) && $this->data->linkUrl = (string)$data['linkUrl'];
           isset($data['categoryId']) && $this->data->categoryId = (string)$data['categoryId'];
           isset($data['firstCatId']) && $this->data->firstCatId = (string)$data['firstCatId'];
           isset($data['categoryNameList']) && $this->data->categoryNameList = (string)$data['categoryNameList'];
           isset($data['onlineStatus']) && $this->data->onlineStatus = (string)$data['onlineStatus'];
           isset($data['adPv']) && $this->data->adPv = (string)$data['adPv'];
           isset($data['click']) && $this->data->click = (string)$data['click'];
           isset($data['charge']) && $this->data->charge = (string)$data['charge'];
           isset($data['alipayInshopAmt']) && $this->data->alipayInshopAmt = (string)$data['alipayInshopAmt'];
           isset($data['transaction_cost']) && $this->data->transaction_cost = (string)$data['transaction_cost'];
           isset($data['ctr']) && $this->data->ctr = (string)$data['ctr'];
           isset($data['cvr']) && $this->data->cvr = (string)$data['cvr'];
           isset($data['roi']) && $this->data->roi = (string)$data['roi'];
           isset($data['alipayInshopNum']) && $this->data->alipayInshopNum = (string)$data['alipayInshopNum'];
           isset($data['colCartNum']) && $this->data->colCartNum = (string)$data['colCartNum'];
           isset($data['cartDirNum']) && $this->data->cartDirNum = (string)$data['cartDirNum'];
           isset($data['cartIndirNum']) && $this->data->cartIndirNum = (string)$data['cartIndirNum'];
           isset($data['colCartRate']) && $this->data->colCartRate = (string)$data['colCartRate'];
           isset($data['ecpc']) && $this->data->ecpc = (string)$data['ecpc'];
           isset($data['ecpm']) && $this->data->ecpm = (string)$data['ecpm'];
           isset($data['colCartCost']) && $this->data->colCartCost = (string)$data['colCartCost'];
           isset($data['itemColInshopNum']) && $this->data->itemColInshopNum = (string)$data['itemColInshopNum'];
           isset($data['shopColDirNum']) && $this->data->shopColDirNum = (string)$data['shopColDirNum'];
           isset($data['colNum']) && $this->data->colNum = (string)$data['colNum'];
           isset($data['cartInshopNum']) && $this->data->cartInshopNum = (string)$data['cartInshopNum'];
           isset($data['alipayDirAmt']) && $this->data->alipayDirAmt = (string)$data['alipayDirAmt'];
           isset($data['alipayIndirAmt']) && $this->data->alipayIndirAmt = (string)$data['alipayIndirAmt'];
           isset($data['alipayDirNum']) && $this->data->alipayDirNum = (string)$data['alipayDirNum'];
           isset($data['alipayIndirNum']) && $this->data->alipayIndirNum = (string)$data['alipayIndirNum'];
           isset($data['adUv']) && $this->data->adUv = (string)$data['adUv'];
           isset($data['adUvCost']) && $this->data->adUvCost = (string)$data['adUvCost'];
           isset($data['shopVisitUv']) && $this->data->shopVisitUv = (string)$data['shopVisitUv'];
           isset($data['wwNum']) && $this->data->wwNum = (string)$data['wwNum'];
           isset($data['cartRate']) && $this->data->cartRate = (string)$data['cartRate'];
           isset($data['cartCost']) && $this->data->cartCost = (string)$data['cartCost'];
           isset($data['itemColInshopCost']) && $this->data->itemColInshopCost = (string)$data['itemColInshopCost'];
    }
}
?>